/*
day323 
2020.7.16 
*/
#include<iostream>
#include<vector>
using namespace std;

 
class Solution {
public:
    bool kLengthApart(vector<int>& nums, int k) {
		int count=k,point=0;
		while(point<nums.size())
		{
			while(point<nums.size()&&nums[point]!=1)
			{
				point++;
				count++;
			}
			
			if(point<nums.size())
			{
				if(count<k)
				{
					return false;
				}
				
				count=0;
				point++;
			}	
		}
		return true;
    }
};

int main()
{
	return 0;
}
